package com.inf.vo;

import java.io.Serializable;


/**
 * Created by zhangbn on 2018/10/29.
 */
public class PersonBaseVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String rowkey;
    private String uuid;

    private String pass_id;
    private String pass_time;
    private String camera_id;
    private Long camera_code;
    private String device_id;
    private String server_id;
    private String face_img_url;
    private String environ_img_url;
    private Double quality_score;
    private Integer age;
    private Integer gender;
    private Integer attractive;
    private Integer eyeglass;
    private Integer sunglass;
    private Integer smile;
    private Integer mask;
    private Integer race;
    private Integer eyeopen;
    private Integer mouthopen;
    private Integer beard;
    private String feature;
    private String create_time;


    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getPass_id() {
        return pass_id;
    }

    public void setPass_id(String pass_id) {
        this.pass_id = pass_id;
    }

    public String getPass_time() {
        return pass_time;
    }

    public void setPass_time(String pass_time) {
        this.pass_time = pass_time;
    }

    public String getCamera_id() {
        return camera_id;
    }

    public void setCamera_id(String camera_id) {
        this.camera_id = camera_id;
    }

    public Long getCamera_code() {
        return camera_code;
    }

    public void setCamera_code(Long camera_code) {
        this.camera_code = camera_code;
    }

    public String getDevice_id() {
        return device_id;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }

    public String getServer_id() {
        return server_id;
    }

    public void setServer_id(String server_id) {
        this.server_id = server_id;
    }

    public String getFace_img_url() {
        return face_img_url;
    }

    public void setFace_img_url(String face_img_url) {
        this.face_img_url = face_img_url;
    }

    public String getEnviron_img_url() {
        return environ_img_url;
    }

    public void setEnviron_img_url(String environ_img_url) {
        this.environ_img_url = environ_img_url;
    }

    public Double getQuality_score() {
        return quality_score;
    }

    public void setQuality_score(Double quality_score) {
        this.quality_score = quality_score;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getAttractive() {
        return attractive;
    }

    public void setAttractive(Integer attractive) {
        this.attractive = attractive;
    }

    public Integer getEyeglass() {
        return eyeglass;
    }

    public void setEyeglass(Integer eyeglass) {
        this.eyeglass = eyeglass;
    }

    public Integer getSunglass() {
        return sunglass;
    }

    public void setSunglass(Integer sunglass) {
        this.sunglass = sunglass;
    }

    public Integer getSmile() {
        return smile;
    }

    public void setSmile(Integer smile) {
        this.smile = smile;
    }

    public Integer getMask() {
        return mask;
    }

    public void setMask(Integer mask) {
        this.mask = mask;
    }

    public Integer getRace() {
        return race;
    }

    public void setRace(Integer race) {
        this.race = race;
    }

    public Integer getEyeopen() {
        return eyeopen;
    }

    public void setEyeopen(Integer eyeopen) {
        this.eyeopen = eyeopen;
    }

    public Integer getMouthopen() {
        return mouthopen;
    }

    public void setMouthopen(Integer mouthopen) {
        this.mouthopen = mouthopen;
    }

    public Integer getBeard() {
        return beard;
    }

    public void setBeard(Integer beard) {
        this.beard = beard;
    }

    public String getFeature() {
        return feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public PersonBaseVo(String rowkey, String uuid, String pass_id, String pass_time, String camera_id, Long camera_code, String device_id, String server_id, String face_img_url, String environ_img_url, Double quality_score, Integer age, Integer gender, Integer attractive, Integer eyeglass, Integer sunglass, Integer smile, Integer mask, Integer race, Integer eyeopen, Integer mouthopen, Integer beard, String feature, String create_time) {
        this.rowkey = rowkey;
        this.uuid = uuid;
        this.pass_id = pass_id;
        this.pass_time = pass_time;
        this.camera_id = camera_id;
        this.camera_code = camera_code;
        this.device_id = device_id;
        this.server_id = server_id;
        this.face_img_url = face_img_url;
        this.environ_img_url = environ_img_url;
        this.quality_score = quality_score;
        this.age = age;
        this.gender = gender;
        this.attractive = attractive;
        this.eyeglass = eyeglass;
        this.sunglass = sunglass;
        this.smile = smile;
        this.mask = mask;
        this.race = race;
        this.eyeopen = eyeopen;
        this.mouthopen = mouthopen;
        this.beard = beard;
        this.feature = feature;
        this.create_time = create_time;
    }

    public PersonBaseVo(String rowkey, String uuid, String pass_id, String pass_time, String camera_id, String face_img_url, String environ_img_url, Double quality_score, String feature) {
        this.rowkey = rowkey;
        this.uuid = uuid;
        this.pass_id = pass_id;
        this.pass_time = pass_time;
        this.camera_id = camera_id;
        this.face_img_url = face_img_url;
        this.environ_img_url = environ_img_url;
        this.quality_score = quality_score;
        this.feature = feature;
    }

    public PersonBaseVo() {
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        PersonBaseVo p = (PersonBaseVo) obj;
        if (uuid.length() == 44) {
            if (p.getUuid().length() == 44) {
                if (uuid.substring(12).equals(p.getUuid().substring(12))) {
                    return true;
                }
            } else if (p.getUuid().length() == 32) {
                if (uuid.substring(12).equals(p.getUuid())) {
                    return true;
                }
            } else {
                return false;
            }
        }
        if (uuid.length() == 32) {
            if (p.getUuid().length() == 32) {
                if (uuid.equals(p.getUuid())) {
                    return true;
                }
            } else if (p.getUuid().length() == 44) {
                if (uuid.equals(p.getUuid().substring(12))) {
                    return true;
                }
            } else {
                return false;
            }
        }
        if (uuid.equals(p.getUuid())) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        if (uuid.length() == 44) {
            return uuid.substring(12).hashCode();
        }
        return uuid.hashCode();
    }

    @Override
    public String toString() {
        return "PersonBaseVo{" +
                "rowkey='" + rowkey + '\'' +
                ", uuid='" + uuid + '\'' +
                ", pass_id='" + pass_id + '\'' +
                ", pass_time='" + pass_time + '\'' +
                ", camera_id='" + camera_id + '\'' +
                ", camera_code=" + camera_code +
                ", device_id='" + device_id + '\'' +
                ", server_id='" + server_id + '\'' +
                ", face_img_url='" + face_img_url + '\'' +
                ", environ_img_url='" + environ_img_url + '\'' +
                ", quality_score=" + quality_score +
                ", age=" + age +
                ", gender=" + gender +
                ", attractive=" + attractive +
                ", eyeglass=" + eyeglass +
                ", sunglass=" + sunglass +
                ", smile=" + smile +
                ", mask=" + mask +
                ", race=" + race +
                ", eyeopen=" + eyeopen +
                ", mouthopen=" + mouthopen +
                ", beard=" + beard +
                ", feature='" + feature + '\'' +
                ", create_time='" + create_time + '\'' +
                '}';
    }
}
